/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: I40e driver Vendor Hooks
 */

#ifdef CONFIG_VENDOR_I40E_HOOKS

#undef TRACE_SYSTEM
#define TRACE_SYSTEM i40e

#define TRACE_INCLUDE_PATH trace/hooks
#if !defined(_TRACE_HOOK_I40E_HOOKS_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_HOOK_I40E_HOOKS_H
#include <linux/tracepoint.h>
#include <trace/hooks/vendor_hooks.h>

struct i40e_vsi;
struct i40e_pf;
struct i40e_hw;

DECLARE_HOOK(vendor_i40e_rebuild,
	TP_PROTO(struct i40e_pf *pf),
	TP_ARGS(pf));

DECLARE_HOOK(vendor_i40e_netdev_stats,
	TP_PROTO(unsigned int *flag),
	TP_ARGS(flag));

#endif
/* This part must be outside protection */
#include <trace/define_trace.h>

#else
#include <linux/tracepoint.h>
struct i40e_vsi;
struct i40e_pf;
struct i40e_hw;

DECLARE_EVENT_NOP(vendor_i40e_rebuild,
	TP_PROTO(struct i40e_pf *pf),
	TP_ARGS(pf));

DECLARE_EVENT_NOP(vendor_i40e_netdev_stats,
	TP_PROTO(unsigned int *flag),
	TP_ARGS(flag));

#endif /* CONFIG_VENDOR_I40E_HOOKS */
